.class public Lcom/wmr/order/RefundActivity;
.super Landroid/app/Activity;
.source "RefundActivity.java"


# annotations
.annotation build Landroid/annotation/SuppressLint;
    value = {
        "HandlerLeak",
        "ShowToast"
    }
.end annotation

.annotation system Ldalvik/annotation/MemberClasses;
    value = {
        Lcom/wmr/order/RefundActivity$mOncliclisetener;,
        Lcom/wmr/order/RefundActivity$viewClickListener;
    }
.end annotation


# instance fields
.field private activities:Ljava/util/ArrayList;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/util/ArrayList",
            "<",
            "Landroid/app/Activity;",
            ">;"
        }
    .end annotation
.end field

.field private allcost:Ljava/lang/String;

.field public h:Landroid/os/Handler;

.field private jarray:Lorg/json/JSONArray;

.field private ll_refund_closebtn:Landroid/widget/LinearLayout;

.field private m:Lmyapp/MyApp;

.field private mcontext:Landroid/content/Context;

.field private orderid:Ljava/lang/String;

.field private reason:Ljava/lang/String;

.field private reasonview:[Landroid/view/View;

.field private showlistreason:Landroid/widget/LinearLayout;


# direct methods
.method public constructor <init>()V
    .locals 1

    .prologue
    .line 41
    invoke-direct {p0}, Landroid/app/Activity;-><init>()V

    .line 46
    const/4 v0, 0x0

    iput-object v0, p0, Lcom/wmr/order/RefundActivity;->h:Landroid/os/Handler;

    .line 49
    const-string v0, ""

    iput-object v0, p0, Lcom/wmr/order/RefundActivity;->orderid:Ljava/lang/String;

    .line 50
    const-string v0, ""

    iput-object v0, p0, Lcom/wmr/order/RefundActivity;->allcost:Ljava/lang/String;

    .line 51
    const-string v0, ""

    iput-object v0, p0, Lcom/wmr/order/RefundActivity;->reason:Ljava/lang/String;

    .line 41
    return-void
.end method

.method static synthetic access$0(Lcom/wmr/order/RefundActivity;)Landroid/content/Context;
    .locals 1

    .prologue
    .line 44
    iget-object v0, p0, Lcom/wmr/order/RefundActivity;->mcontext:Landroid/content/Context;

    return-object v0
.end method

.method static synthetic access$1(Lcom/wmr/order/RefundActivity;)[Landroid/view/View;
    .locals 1

    .prologue
    .line 53
    iget-object v0, p0, Lcom/wmr/order/RefundActivity;->reasonview:[Landroid/view/View;

    return-object v0
.end method

.method static synthetic access$2(Lcom/wmr/order/RefundActivity;Ljava/lang/String;)V
    .locals 0

    .prologue
    .line 51
    iput-object p1, p0, Lcom/wmr/order/RefundActivity;->reason:Ljava/lang/String;

    return-void
.end method

.method static synthetic access$3(Lcom/wmr/order/RefundActivity;)Lorg/json/JSONArray;
    .locals 1

    .prologue
    .line 48
    iget-object v0, p0, Lcom/wmr/order/RefundActivity;->jarray:Lorg/json/JSONArray;

    return-object v0
.end method

.method static synthetic access$4(Lcom/wmr/order/RefundActivity;[Landroid/view/View;)V
    .locals 0

    .prologue
    .line 53
    iput-object p1, p0, Lcom/wmr/order/RefundActivity;->reasonview:[Landroid/view/View;

    return-void
.end method

.method static synthetic access$5(Lcom/wmr/order/RefundActivity;)Landroid/widget/LinearLayout;
    .locals 1

    .prologue
    .line 52
    iget-object v0, p0, Lcom/wmr/order/RefundActivity;->showlistreason:Landroid/widget/LinearLayout;

    return-object v0
.end method

.method static synthetic access$6(Lcom/wmr/order/RefundActivity;)Lmyapp/MyApp;
    .locals 1

    .prologue
    .line 43
    iget-object v0, p0, Lcom/wmr/order/RefundActivity;->m:Lmyapp/MyApp;

    return-object v0
.end method

.method static synthetic access$7(Lcom/wmr/order/RefundActivity;Lorg/json/JSONArray;)V
    .locals 0

    .prologue
    .line 48
    iput-object p1, p0, Lcom/wmr/order/RefundActivity;->jarray:Lorg/json/JSONArray;

    return-void
.end method

.method static synthetic access$8(Lcom/wmr/order/RefundActivity;)Ljava/lang/String;
    .locals 1

    .prologue
    .line 49
    iget-object v0, p0, Lcom/wmr/order/RefundActivity;->orderid:Ljava/lang/String;

    return-object v0
.end method

.method static synthetic access$9(Lcom/wmr/order/RefundActivity;)Ljava/lang/String;
    .locals 1

    .prologue
    .line 51
    iget-object v0, p0, Lcom/wmr/order/RefundActivity;->reason:Ljava/lang/String;

    return-object v0
.end method

.method private setoncliclistener()V
    .locals 5

    .prologue
    const/4 v4, 0x0

    .line 153
    const v2, 0x7f0700c4

    invoke-virtual {p0, v2}, Lcom/wmr/order/RefundActivity;->findViewById(I)Landroid/view/View;

    move-result-object v2

    check-cast v2, Landroid/widget/LinearLayout;

    iput-object v2, p0, Lcom/wmr/order/RefundActivity;->ll_refund_closebtn:Landroid/widget/LinearLayout;

    .line 154
    iget-object v2, p0, Lcom/wmr/order/RefundActivity;->ll_refund_closebtn:Landroid/widget/LinearLayout;

    new-instance v3, Lcom/wmr/order/RefundActivity$mOncliclisetener;

    invoke-direct {v3, p0, v4}, Lcom/wmr/order/RefundActivity$mOncliclisetener;-><init>(Lcom/wmr/order/RefundActivity;Lcom/wmr/order/RefundActivity$mOncliclisetener;)V

    invoke-virtual {v2, v3}, Landroid/widget/LinearLayout;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    .line 155
    const v2, 0x7f0700c8

    invoke-virtual {p0, v2}, Lcom/wmr/order/RefundActivity;->findViewById(I)Landroid/view/View;

    move-result-object v1

    check-cast v1, Landroid/widget/LinearLayout;

    .line 157
    .local v1, "subbtn":Landroid/widget/LinearLayout;
    new-instance v2, Lcom/wmr/order/RefundActivity$mOncliclisetener;

    invoke-direct {v2, p0, v4}, Lcom/wmr/order/RefundActivity$mOncliclisetener;-><init>(Lcom/wmr/order/RefundActivity;Lcom/wmr/order/RefundActivity$mOncliclisetener;)V

    invoke-virtual {v1, v2}, Landroid/widget/LinearLayout;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    .line 159
    const v2, 0x7f0700c6

    invoke-virtual {p0, v2}, Lcom/wmr/order/RefundActivity;->findViewById(I)Landroid/view/View;

    move-result-object v2

    check-cast v2, Landroid/widget/LinearLayout;

    iput-object v2, p0, Lcom/wmr/order/RefundActivity;->showlistreason:Landroid/widget/LinearLayout;

    .line 160
    const v2, 0x7f0700a1

    invoke-virtual {p0, v2}, Lcom/wmr/order/RefundActivity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/TextView;

    .line 161
    .local v0, "allcostText":Landroid/widget/TextView;
    new-instance v2, Ljava/lang/StringBuilder;

    const-string v3, "\uffe5"

    invoke-direct {v2, v3}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    iget-object v3, p0, Lcom/wmr/order/RefundActivity;->allcost:Ljava/lang/String;

    invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v2

    invoke-virtual {v2}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v2

    invoke-virtual {v0, v2}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    .line 162
    return-void
.end method


# virtual methods
.method protected onCreate(Landroid/os/Bundle;)V
    .locals 2
    .param p1, "savedInstanceState"    # Landroid/os/Bundle;

    .prologue
    .line 58
    invoke-super {p0, p1}, Landroid/app/Activity;->onCreate(Landroid/os/Bundle;)V

    .line 59
    const v1, 0x7f030017

    invoke-virtual {p0, v1}, Lcom/wmr/order/RefundActivity;->setContentView(I)V

    .line 60
    invoke-virtual {p0}, Lcom/wmr/order/RefundActivity;->getApplicationContext()Landroid/content/Context;

    move-result-object v1

    check-cast v1, Lmyapp/MyApp;

    iput-object v1, p0, Lcom/wmr/order/RefundActivity;->m:Lmyapp/MyApp;

    .line 61
    iput-object p0, p0, Lcom/wmr/order/RefundActivity;->mcontext:Landroid/content/Context;

    .line 62
    iget-object v1, p0, Lcom/wmr/order/RefundActivity;->m:Lmyapp/MyApp;

    invoke-virtual {v1}, Lmyapp/MyApp;->getActivity()Ljava/util/ArrayList;

    move-result-object v1

    iput-object v1, p0, Lcom/wmr/order/RefundActivity;->activities:Ljava/util/ArrayList;

    .line 63
    iget-object v1, p0, Lcom/wmr/order/RefundActivity;->activities:Ljava/util/ArrayList;

    invoke-virtual {v1, p0}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z

    .line 64
    invoke-virtual {p0}, Lcom/wmr/order/RefundActivity;->getIntent()Landroid/content/Intent;

    move-result-object v0

    .line 65
    .local v0, "intent":Landroid/content/Intent;
    const-string v1, "orderid"

    invoke-virtual {v0, v1}, Landroid/content/Intent;->getStringExtra(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v1

    iput-object v1, p0, Lcom/wmr/order/RefundActivity;->orderid:Ljava/lang/String;

    .line 66
    const-string v1, "allcost"

    invoke-virtual {v0, v1}, Landroid/content/Intent;->getStringExtra(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v1

    iput-object v1, p0, Lcom/wmr/order/RefundActivity;->allcost:Ljava/lang/String;

    .line 67
    invoke-direct {p0}, Lcom/wmr/order/RefundActivity;->setoncliclistener()V

    .line 68
    new-instance v1, Lcom/wmr/order/RefundActivity$1;

    invoke-direct {v1, p0}, Lcom/wmr/order/RefundActivity$1;-><init>(Lcom/wmr/order/RefundActivity;)V

    iput-object v1, p0, Lcom/wmr/order/RefundActivity;->h:Landroid/os/Handler;

    .line 148
    invoke-virtual {p0}, Lcom/wmr/order/RefundActivity;->rebackreason()Z

    .line 149
    return-void
.end method

.method public onKeyDown(ILandroid/view/KeyEvent;)Z
    .locals 3
    .param p1, "keyCode"    # I
    .param p2, "event"    # Landroid/view/KeyEvent;

    .prologue
    const/4 v2, 0x0

    .line 220
    const/4 v1, 0x4

    if-ne p1, v1, :cond_0

    invoke-virtual {p2}, Landroid/view/KeyEvent;->getRepeatCount()I

    move-result v1

    if-nez v1, :cond_0

    .line 221
    new-instance v0, Landroid/content/Intent;

    invoke-direct {v0}, Landroid/content/Intent;-><init>()V

    .line 222
    .local v0, "intent":Landroid/content/Intent;
    invoke-virtual {p0, v2, v0}, Lcom/wmr/order/RefundActivity;->setResult(ILandroid/content/Intent;)V

    .line 223
    invoke-virtual {p0}, Lcom/wmr/order/RefundActivity;->finish()V

    .line 226
    .end local v0    # "intent":Landroid/content/Intent;
    :cond_0
    return v2
.end method

.method public order_update()Z
    .locals 1

    .prologue
    .line 293
    new-instance v0, Lcom/wmr/order/RefundActivity$3;

    invoke-direct {v0, p0}, Lcom/wmr/order/RefundActivity$3;-><init>(Lcom/wmr/order/RefundActivity;)V

    .line 348
    invoke-virtual {v0}, Lcom/wmr/order/RefundActivity$3;->start()V

    .line 349
    const/4 v0, 0x0

    return v0
.end method

.method public rebackreason()Z
    .locals 1

    .prologue
    .line 230
    new-instance v0, Lcom/wmr/order/RefundActivity$2;

    invoke-direct {v0, p0}, Lcom/wmr/order/RefundActivity$2;-><init>(Lcom/wmr/order/RefundActivity;)V

    .line 287
    invoke-virtual {v0}, Lcom/wmr/order/RefundActivity$2;->start()V

    .line 288
    const/4 v0, 0x0

    return v0
.end method
